#[cfg(test)]
mod cidr_test {
    use std::{net::Ipv4Addr, str::FromStr};

    use cidr::Ipv4Cidr;

    #[test]
    fn cidr_base() {
        // let cidr = Ipv4Cidr::from_str("192.168.1.1").unwrap();
        // let ip_1: Ipv4Addr = Ipv4Addr::from_str("192.168.1.1").unwrap();
        // assert!(cidr.contains(&ip_1));

        let cidr = Ipv4Cidr::from_str("0.0.0.0/0").unwrap();
        let ip: Ipv4Addr = Ipv4Addr::from_str("192.168.1.2").unwrap();
        assert!(cidr.contains(&ip));
    }
}
